package com.paginasenlanube.dao;

import java.util.List;
import java.util.Map;

import org.hibernate.criterion.Order;






public interface GenericDao {
	
	
	public void add(Object o);
	
	public void delete(Object o);
	
	public void update(Object o);
	
	public <T> List<T> getObjectsByEqCriteria(Class<T> entityClass,Map<String, ?> params, Order order);
	
	public <T> T getObjectById(Class<T> entityClass,long id);

	public <T> Integer getObjectValueByMaxCriteria(Class<T> entityClass, String field,Map<String, ?> params);
	
	public <T> boolean deleteObjectsByEqCriteria(Class<T> entityClass,Map<String, ?> params);

}
